#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include<QString>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_pushButton_equal_released();

    void on_pushButton_1_released();

    void on_pushButton_2_released();

    void on_pushButton_9_released();

    void on_pushButton_3_released();

    void on_pushButton_4_released();

    void on_pushButton_5_released();

    void on_pushButton_6_released();

    void on_pushButton_7_released();

    void on_pushButton_8_released();

    void on_pushButton_0_released();

    void on_pushButton_left_released();

    void on_pushButton_right_released();

    void on_pushButton_plus_released();

    void on_pushButton_minus_released();

    void on_pushButton_mutiple_released();

    void on_pushButton_divid_released();

    void on_pushButton_Close_released();

    void on_pushButton_no_released();

    void on_pushButton_and_released();

    void on_pushButton_or_released();

    void on_pushButton_Clear_released();

    void on_pushButton__released();

    void on_pushButton_back_released();

    void MutilSymbolError(int num=1);

    int BracketError();

    void BracketDigitalError();

    void DigitalBracketError();
private:
    Ui::MainWindow *ui;
    QString string;
};

#endif // MAINWINDOW_H
